package com.mapbar.mongodb;

import com.mongodb.DB;
import com.mongodb.Mongo;

public class ConnectionsPool {

	public static Mongo getMongo() {
		return MONGO;
	}

	public static DB getDB(String name) {
		return MONGO.getDB(name);
	}

	public static void main(String[] args) {
		
	}

	private static final Mongo MONGO;

	public final static String HOST = "192.168.51.114";
	public final static int PORT = 20000;
	public final static int SERVER_PORT = 21000;

	static {
		try {
			MONGO = new Mongo(HOST, PORT);
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}
}
